package com.cb.domain.model.system;


import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Company Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * TODO: add class/table comments
 */
@Entity
@Table(name="company")
public class Company implements Serializable {

    protected Long companyId;
	protected String companyName;
	protected String description;
	protected String aboutUs;
	protected String logo;
	protected String address; //公司地址
	protected String comEmail;//客服邮箱
	protected String comPhone;//客服电话


    

	/**
	 * 	 * @return Short
     * @hibernate.id column="companyId" type="java.lang.Short" generator-class="native"
	 */
	
	@Id     
    @GeneratedValue(generator="Id_Generator")
    @GenericGenerator(name="Id_Generator", strategy="com.cb.common.util.IdGenerator")
	public Long getCompanyId() {
		return this.companyId;
	}
	
	/**
	 * Set the companyId
	 */	
	public void setCompanyId(Long aValue) {
		this.companyId = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="companyName" type="java.lang.String" length="100" not-null="true" unique="false"
	 */
	
	@Column(name = "companyName")	
	public String getCompanyName() {
		return this.companyName;
	}
	
	/**
	 * Set the companyName
	 * @spring.validator type="required"
	 */	
	public void setCompanyName(String aValue) {
		this.companyName = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="description" type="java.lang.String" length="65535" not-null="true" unique="false"
	 */
	
	@Column(name = "description")	
	public String getDescription() {
		return this.description;
	}
	
	/**
	 * Set the description
	 * @spring.validator type="required"
	 */	
	public void setDescription(String aValue) {
		this.description = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="aboutUs" type="java.lang.String" length="65535" not-null="true" unique="false"
	 */
	
	@Column(name = "aboutUs")	
	public String getAboutUs() {
		return this.aboutUs;
	}
	
	/**
	 * Set the aboutUs
	 * @spring.validator type="required"
	 */	
	public void setAboutUs(String aValue) {
		this.aboutUs = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="Logo" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "Logo")	
	public String getLogo() {
		return this.logo;
	}
	
	/**
	 * Set the logo
	 */	
	public void setLogo(String aValue) {
		this.logo = aValue;
	}
	
	@Column(name = "address")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Column(name = "comEmail")
	public String getComEmail() {
		return comEmail;
	}

	public void setComEmail(String comEmail) {
		this.comEmail = comEmail;
	}
	
	@Column(name = "comPhone")
	public String getComPhone() {
		return comPhone;
	}

	public void setComPhone(String comPhone) {
		this.comPhone = comPhone;
	}
	

}